#!/bin/bash

if [ $# -eq 0 ]; then
    echo "Usage: ./pack.sh <folder>"
    exit 1
fi

# clear all __pychache__ folders
find $1 -name "__pycache__" -type d -exec rm -r {} +

# compress the folder to .zip
zip -r publish.zip $1